package thread;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: tao
 * Date: 2023-11-24
 * Time: 10:19
 */
class MyThread extends Thread {
    @Override
    public void run() {
        System.out.println("id:"+ this.getId() + " name:" + this.getName());
    }
}
public class ThreadDemo1 {
    public static void main(String[] args) {
        Thread t = new MyThread();
        t.start();
    }
}
